 <template>
  <div class="alet_container">
    <section class="tip_text_container">
      <div class="tip_icon">
        <span></span>
        <span></span>
      </div>
      <p class="tip_text">{{alertText}}</p>
      <div class="confrim" @click="closeTip">确认</div>
    </section>
  </div>
</template>

<script>
export default {
  data() {
    return {
      positionY: 0,
      timer: null
    };
  },
  mounted() {},
  props: ["alertText"],
  methods: {
    closeTip() {
      this.$emit("closeTip");
    }
  }
};
</script>

<style lang="scss" scoped>
@import "../../style/mixin";
@keyframes tipMove {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.8);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
.alet_container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}
.tip_text_container {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -140px;
  margin-left: -140px;
  width: 280px;
  animation: tipMove 0.4s;
  background-color: rgba(255, 255, 255, 1);
  border: 1px;
  padding-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px;
  border-radius: 5.85px;
  .tip_icon {
    @include wh(70px, 70px);
    border: 3.5px solid #f8cb86;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    span:nth-of-type(1) {
      @include wh(0.28px, 35px);
      background-color: #f8cb86;
    }
    span:nth-of-type(2) {
      @include wh(0.47px, 0.47px);
      border: 1px;
      border-radius: 50%;
      margin-top: 0.47px;
      background-color: #f8cb86;
    }
  }
  .tip_text {
    @include sc(16.38px, #333);
    line-height: 21.06px;
    text-align: center;
    margin-top: 18px;
    padding: 0 9.36px;
  }
  .confrim {
    @include sc(18px, #fff);
    font-weight: bold;
    margin-top: 18px;
    background-color: #4cd964;
    width: 100%;
    text-align: center;
    line-height: 42.12px;
    border: 1px;
    border-bottom-left-radius: 5.85px;
    border-bottom-right-radius: 5.85px;
  }
}
</style>
